function submit_spry_form( nome_do_form )
{
	if ( Spry.Widget.Form.validate( document.getElementById( nome_do_form ) ) == false )
	{
		document.getElementById( "erro-spry" ).className = "visible";
		return false;
	}

	return true;
}

function urlencode( str )
{
	str = escape( str );
	str = str.replace( '+', '%2B' );
	str = str.replace( '%20', '+' );
	str = str.replace( '*', '%2A' );
	str = str.replace( '/', '%2F' );
	str = str.replace( '@', '%40' );
	return str;
}
